'use strict';

//也可以这样写: ...controller('mainCtrl',['$scope',function($scope){}]);
angular.module('app').controller('companyCtrl',['$scope','$http','$state',function($scope, $http, $state){
    $http.get('data/company.json?id='+$state.params.id).then(function(res){
        $scope.company=res.data;
    });
}]);